﻿
using System.Runtime.InteropServices;

namespace SUNRPA.CONTROLS.IMPL.domain.attrubutes {
    [AttributeUsage(AttributeTargets.Field | AttributeTargets.Method | AttributeTargets.Property)]
    public sealed class VariableMemberInfoAttribute:Attribute {
        private string memberName;
        private string expression;

        public VariableMemberInfoAttribute(string memberName, [Optional]string expression) {
            MemberName = memberName;
            Expression = expression;
        }

        public string MemberName { 
            get {return memberName;}
            set {memberName = value;}
        }

        public string Expression { get => expression; set => expression = value; }
    }
}
